#include <lua.h>
#include <lauxlib.h>

#pragma comment(lib, "inject.lib")

static int hello_world(lua_State *L)
{
    lua_pushstring(L, "Hello World!\n");
    return 1;
}

static const struct luaL_Reg base[] = {
    {"hello", hello_world},
    {NULL, NULL}};

__declspec(dllexport) int luaopen_base64(lua_State *L)
{
    luaL_register(L, "base64", base);
    return 0;
}

// 编译选项
// cl /MD /O2 /LD /Febase64.dll /I. base64.c

https://steamcommunity.com/profiles/76561198988952832/